//-------------------------------------------------------------------
//	Copyright (c) 2010-2012  Zhirnov Andrey
//	This file is part of the "UXGEN" project.
//	See copyright notice in "Engine.h".
//-------------------------------------------------------------------

#include "SoundSource.h"
#include "../CResource.h"

namespace Engine
{
namespace Resources
{

	//
	// Music (streamed sound)
	//
	/*
	class _EXPORT_ CMusic : public CResource
	{
	protected:
		struct TALBufferInfo
		{
			ALuint	uIdent;
			uint	uNumber;
		};
		
	protected:
		IFilePtr				_pFile;

		list< TALBufferInfo >	_lBuffers;
		//sndbufinfo_t			_aBuffers;

		ALenum					_eFormat;
		ALsizei					_iFreq;
		e_sound_format::type	_eIntFormat;
		uint					_uCurBuffer;
		
	protected:
		CMusic(const char *pFileName, uint uFlags);
		virtual ~CMusic();

		bool _LoadBuffer(uint uNumb);

		virtual bool _Replace(CResource *pRes);

	public:
		bool Create(TStreamedSource &sSource);

		/*void Play();
		void Stop();
		void Pause();
		void Rewind();
		void Update();*
		
		virtual void Destroy();
		virtual bool LoadF(IFilePtr pFile, uint uSize = 0);
		virtual bool SaveF(IFilePtr pFile);
		
		virtual bool			IsValid() const	{ return false; }

		virtual e_resource::type	GetType() const	{ return e_resource::STREAMED_SOUND; }
	};*/
	
//-------------------------------------------------------------------

}	// Resources
}	// Engine
